package com.thermal.thermal_inspection.mapper;

import com.thermal.thermal_inspection.entity.Report;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReportMapper {
    Report selectById(Integer patientId);
    List<Report> selectAll();
    int insertReport(Report report);
    int updateReport(Report report);
    int deleteById(Integer reportId);
    // ReportMapper.java

    List<Report> searchReports(@Param("patientName") String patientName,
                               @Param("gender") String gender,
                               @Param("phone") String phone);

}

